{$CLEO .cs}


model.Load(#BALLAS1)
model.Load(#BALLAS2)
model.Load(#BALLAS3)
model.Load(#AT_BALLAS10)
model.Load(#AT_BALLAS9)
model.Load(#SA_BALLAS9)
model.Load(#SA_BALLAS8)
model.Load(#SA_BALLAS6)
model.Load(#SA_BALLAS7)
model.Load(#SA_BALLAS5)
model.Load(#AT_BALLAS11)
model.Load(#AK47)


model.Load(#LCS_PYTHON)
model.Load(#LCS_CHROMEGUN)
model.Load(#LCS_UZI)
model.Load(#LC_AK47)
model.Load(#LCS_BUDDYSHOT)
model.Load(#VC_INGRAM)

038B: load_requested_models

const
LCS_PYTHON =  191
LCS_LASER = 181
LCS_CHROMEGUN =  207
LCS_4k47 =  197
LCS_BUDDYSHOT = 166
VC_INGRAM = 133
LCS_SPAS12 = 193
LCS_UZI = 196
LCS_BASEBALLBAT = 164
LCS_CHAINSAW    = 170
LCS_MINIGUN = 186
LCS_M60 = 184
LCS_M21 = 183
LC_AK47 = 111  
VC_RUGER = 147 
LC_M16 = 117
LCS_KATANA =  179
VCS_M249 = 221
VCS_SKORPION  = 225
end 


while true 
wait 0 
 if
856D:  not    actor 0@ defined

then
009A: 0@ = create_actor_pedtype 8 model #SA_BALLAS5 at 7720.4850 -8778.2680 1014.2270  
actor.Angle(0@ ) = 350.0 
actor.Health(0@) = 500
actor.GiveWeaponAndAmmo(0@,VC_INGRAM   ,99999)
end


 if
856D:  not    actor 1@ defined

then
009A: 1@ = create_actor_pedtype 8 model #BALLAS2 at 7709.3680 -8791.6720 1014.2270 
actor.Angle(1@ ) = 262.0 
actor.Health(1@) = 500
actor.GiveWeaponAndAmmo(1@,LCS_BUDDYSHOT   ,99999)
end

 if
856D:  not    actor 2@ defined

then
009A: 2@ = create_actor_pedtype 8 model #AT_BALLAS11 at  7711.6680 -8781.7980 1007.0290
actor.Angle(2@ ) = 268.0 
actor.Health(2@) = 500
actor.GiveWeaponAndAmmo(2@,LCS_PYTHON   ,99999)
end


 if
856D:  not    actor 3@ defined

then


009A: 3@ = create_actor_pedtype 8 model #SA_BALLAS7 at 7721.5090 -8781.1710 1007.0290
actor.Angle(3@ ) = 165.0 
actor.Health(3@) = 500
actor.GiveWeaponAndAmmo(3@,LCS_BUDDYSHOT   ,99999)
end

 if
856D:  not    actor 4@ defined

then

009A: 4@ = create_actor_pedtype 8 model #BALLAS2 at 7718.5060 -8794.9000 1007.0290
actor.Angle(4@ ) = 360.0 
actor.Health(4@) = 500
actor.GiveWeaponAndAmmo(4@,LC_AK47   ,99999)
end 

if
856D:  not    actor 5@ defined
 
then

009A: 5@ = create_actor_pedtype 8 model #AT_BALLAS10 at  7720.8030 -8773.3350 1007.0290
actor.Angle(5@ ) = 181.0 
actor.Health(5@) = 500
actor.GiveWeaponAndAmmo(5@,LCS_UZI   ,99999)
end


    if
     056D:     actor 0@ defined 
     then
        if
        actor.Dead(0@)
        then
         actor.RemoveReferences(0@)
        end 
     end 
    
    if
     056D:     actor 1@ defined 
     then
        if
        actor.Dead(1@)
        then
         actor.RemoveReferences(1@)
        end 
     end 
     
    if
     056D:     actor 2@ defined 
     then
        if
        actor.Dead(2@)
        then
         actor.RemoveReferences(2@)
        end 
     end 
     
    if
     056D:     actor 3@ defined 
     then
        if
        actor.Dead(3@)
        then
         actor.RemoveReferences(3@)
        end 
     end 
     
    if
     056D:     actor 4@ defined 
     then
        if
        actor.Dead(4@)
        then
         actor.RemoveReferences(4@)
        end 
     end 
     
    if
     056D:     actor 5@ defined 
     then
        if
        actor.Dead(5@)
        then
         actor.RemoveReferences(5@)
        end 
     end 
 
 
 if
80FE: not   actor $PLAYER_ACTOR sphere 0 in_sphere 7720.4850 -8778.2680 1014.2270  radius 151.0 151.0 151.0

 then    
    if
     056D:     actor 0@ defined     
    then
           actor.RemoveReferences(0@)
  
    end
    if
     056D:     actor 1@ defined     
    then
           actor.RemoveReferences(1@)
  
    end
    if
     056D:     actor 2@ defined     
    then
           actor.RemoveReferences(2@)
  
    end
    if
     056D:     actor 3@ defined     
    then
           actor.RemoveReferences(3@)
  
    end
    if
     056D:     actor 4@ defined     
    then
           actor.RemoveReferences(4@)
  
    end
    if
     056D:     actor 5@ defined     
    then
           actor.RemoveReferences(5@)
  
    end
    
    break
 end 
end 

END_THREAD